<?php
/**
 * 请在下面放置任何您需要的应用配置
 */

return [

    /**
     * 应用接口层的统一参数
     */
    'apiCommonRules' => [

    ],
    'Wechat'         => [
        'token'          => 'DOWGXxWwpxc10cacwG0YxZpycCEQWh10', //填写你设定的key
        'encodingaeskey' => 'wbBZbQ9zpbiSSBr3srRDAq0wbzB2QQXDixypZA8x2AB', //填写加密用的EncodingAESKey
        'appid'          => 'wx82449b68712a65b5', //填写高级调用功能的app id
        'appsecret'      => 'b539efb9cadc93b55178cfa06cd4bb10', //填写高级调用功能的密钥
        'debug'      => true //填写高级调用功能的密钥
    ],
    /**
     * 钉钉接口配置
     */
    'DingTalk'       => [
        'CORPID' => 'ding06b5e90692a2dffb',
        'SECRET' => 'CksQMltJGrnnies_Xa5qV6QPmmc-mio7Tl7aJbKCJsuPl_9v9z5llyp2C2tYdswc',
    ],
    /**
     * 七牛相关配置
     */
    'Qiniu'          => [
        //统一的key
        'accessKey'    => 'wQ3yR9exPbYEeeGaSBFQnLeYYAhem75y2bRzxrLD',
        'secretKey'    => 'aGFuFKC-nty0ZlZe32kdD3gMfcyebDlDx6Ldntik',
        //自定义配置的空间
        'space_bucket' => 'file1-thinkpark-cc',
        'space_host'   => 'http://file1.thinkpark.cc',
    ],
    'BaiduApiKey'    => '6b9e093cd52a1c4d318cffaf68f0cd1d',
    /**
     * redis缓存服务器参考配置
     */
    'redis'          => [
        //Redis缓存配置项
        'servers'  => [
            'type'    => 'http',  //Redis连接方式
            'host'    => 'menma.me',  //Redis服务器地址
            'port'    => '7379',      //Redis端口号
            'prefix'  => 'api:v1:',   //Redis-key前缀
            'auth'    => 'menma',     //Redis链接密码
            'timeout' => 1000,
            'db'      => 1,             //Redis库
        ],
        // Redis分库对应关系
        'DB'       => [
            'developers' => 1,
            'userInfo'   => 2,
            'IPerrTime:' => 3,
        ],
        //使用阻塞式读取队列时的等待时间单位/秒
        'blocking' => 5,
    ],
    'FastRoute'      => [
        /**
         * 格式：array($method, $routePattern, $handler)
         *
         * @param string /array $method 允许的HTTP请求方烤鸡，可以为：GET/POST/HEAD/DELETE 等
         * @param string $routePattern 路由的正则表达式
         * @param string $handler 对应PhalApi中接口服务名称，即：?service=$handler
         */
        'v1' => [
            ['POST', '/admin/login', 'Admin.Login'],
            ['POST', '/admin/delete', 'Admin.Delete'],
        ],
    ],
    'UCloudEngine'   => 'upyun',
    'UCloud'         => [
        'api'       => 'v0.api.upyun.com',
        'accessKey' => 'hejun',
        'secretKey' => 'bugaosuni',
        'bucket'    => 'images-menma-me',
        'timeout'   => 600
    ],

    'Facepp'         => [
        'api_key'    => '274c1d8e876db18a4568bfa4488fcf95',
        'api_secret' => 'z0MOHiyD4tUCvihzAUyflM6kcWK-y1N2',
    ],
    'PHPMailer'      => [
        'email' => [
//            'host' => 'ssl://smtp.qq.com:465',
            'host'     => 'smtp.exmail.qq.com',
            'username' => 'info@socialpark.com.cn',
            'password' => 'Menmahudong123',
            'from'     => 'info@socialpark.com.cn',
            'fromName' => '门玛互动',
            'sign'     => '<br/><br/>请不要回复此邮件，谢谢！<br/><br/>--门玛互动',
        ],
    ],
    "SMSService"     => [
        "accountSid"   => "aaf98f8954383ba201544b351fb20daf",  //主帐号
        "accountToken" => "0938bf2ecc384af0ab7e8d3b34dc2636",  //主帐号Token
        "appId"        => "8a48b5515438446d01544b3582e40e33",  //应用Id
        "serverPort"   => "8883",  //请求端口 默认:8883
        "serverIP"     => ""   //请求地址不需要写https:// 默认:sandboxapp.cloopen.com
    ],
    "SentryDSN"=>"http://c2921eba3b644449b936d9317ef1cfb4:6123da8d8ae846efa7d31637a1b0e6b6@sentry.menma.me/2",
    'Gee'=>[
        'CAPTCHA_ID'=>'5064231e28f2e7e4ee84a9c63301746d',
        'PRIVATE_KEY'=>'12e37fd0c65a8b42d0efb6f24ee3dab1',
//        'CAPTCHA_ID'=>'b46d1900d0a894591916ea94ea91bd2c',
//        'PRIVATE_KEY'=>'36fc3fe98530eea08dfc6ce76e3d24c4',
    ]
];
